Use new instance store to resolve network uuid to bridge name
authorTom Wilkie <tom.wilkie@gmail.com>
Wed, 25 Apr 2007 14:42:34 +0000 (15:42 +0100)
committerTom Wilkie <tom.wilkie@gmail.com>
Wed, 25 Apr 2007 14:42:34 +0000 (15:42 +0100)
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

tools/python/xen/xend/XendConfig.py

index 48704afe61bc0ca5bfd88e9fd909aa6ded32ed0a..daa4978eef011ed21ec137753b683222146de929 100644 (file)
@@ -22,6 +22,7 @@ import types
 
 from xen.xend import sxp
 from xen.xend import uuid
+from xen.xend import XendAPIStore
 from xen.xend.XendError import VmError
 from xen.xend.XendDevices import XendDevices
 from xen.xend.PrettyPrint import prettyprintstring
@@ -1050,8 +1051,7 @@ class XendConfig(dict):
                 if cfg_xenapi.get('name'):
                     dev_info['name'] = cfg_xenapi.get('name')
                 if cfg_xenapi.get('network'):
-                    from xen.xend.XendNode import XendAPIInstanceStore
-                    network = XendAPIInstanceStore.get(
+                    network = XendAPIStore.get(
                         cfg_xenapi.get('network'), 'network')
                     dev_info['bridge'] = network.get_name_label()